package com.rich.dao;

import java.util.List;

import com.rich.domain.PageBean;
import com.rich.domain.Product;

public interface ProductDao {

	List<Product> findHot()throws Exception;

	List<Product> findNew()throws Exception;

	Product getById(String pid)throws Exception;

	List<Product> findByPage(PageBean<Product> pb, String cid)throws Exception;

	int getTotalRecord(String cid)throws Exception;

	List<Product> findAll()throws Exception;

	void save(Product p)throws Exception;

}
